import request from '@/utils/request' // 引入axios的封装方法
import cfg from '@/config/config'

const timePeriodConfigApi = {
  // 获取配置信息
  getApprovalConfig: () => {
    return request('post', cfg.apiUrl + 'approval/getVisitApprovalConfig')
  },
  // 保存配置信息
  saveApprovalConfig: param => {
    return request('post', cfg.apiUrl + 'approval/saveVisitApprovalConfig', param)
  },
}
export default timePeriodConfigApi
